package com.simple.portal.web;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import freemarker.template.TemplateException;

@Controller
@RequestMapping("/account")
public class AccountController extends AbstractPortalBaseController{
	private final static String JSP_PATH = "_Account";
	
	
	@RequestMapping("/list")  
    public String list(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
      
        return getJspPath("account_list");
    }
	
	@RequestMapping("/add")  
    public String add(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
      
        return getJspPath("account_add");
    }
	
	@RequestMapping("/edit")  
    public String edit(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
		
      
        return getJspPath("account_edit");
    }
	
	@RequestMapping("/control")  
    public void control(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
    }
	
	
	@Override
    protected String getBaseJspPath() {
        return JSP_PATH;
    }
}

